Don't define unix when building Emacs (add-unix-to-cpp-undefs.diff).
authorRob Browning <rlb@defaultvalue.org>
Sun, 2 May 2010 17:57:18 +0000 (10:57 -0700)
committerRob Browning <rlb@defaultvalue.org>
Sun, 2 May 2010 17:57:18 +0000 (10:57 -0700)
debian/changelog
debian/patches/add-unix-to-cpp-undefs.diff [new file with mode: 0644]
debian/patches/series

index 1a9a2502bc96bfdf08281df06adc93bdea1405a0..0a2a112cdb2b1385be2214bd9f0e46159d6a9513 100644 (file)
@@ -25,7 +25,10 @@ emacs23 (23.1+1-7) unstable; urgency=low
     Policy 12.2), and remove install-info dependency from packages
     without info files.
 
- -- Rob Browning <rlb@defaultvalue.org>  Sat, 01 May 2010 19:48:11 -0700
+  * Don't define unix when building emacs
+    (add-unix-to-cpp-undefs.diff).
+
+ -- Rob Browning <rlb@defaultvalue.org>  Sun, 02 May 2010 10:56:09 -0700
 
 emacs23 (23.1+1-6) unstable; urgency=low
 
diff --git a/debian/patches/add-unix-to-cpp-undefs.diff b/debian/patches/add-unix-to-cpp-undefs.diff
new file mode 100644 (file)
index 0000000..8415090
--- /dev/null
@@ -0,0 +1,30 @@
+* ./configure should no longer define "unix" when building Emacs.
+  Patch: add-unix-to-cpp-undefs.diff
+  Date: Sun May  2 07:23:27 UTC 2010
+  Added-by: Rob Browning <rlb@defaultvalue.org>
+  Status: incorporated upstream
+
+  Before this fix, gcc would produce the following warning:
+
+    gcc: unrecognized option '-2.0/'
+
+  The Debian patch is taken from this upstream commit:
+
+    revno: 99984
+    committer: Miles Bader <miles@gnu.org>
+    branch nick: trunk
+    timestamp: Thu 2010-04-22 09:10:30 +0900
+    message:
+      get rid of "unix" pre-defined macro when preprocessing Makefile
+
+--- a/configure.in
++++ b/configure.in
+@@ -2937,7 +2937,7 @@
+ # the C preprocessor to some helpful value like 1, or maybe the empty
+ # string.  Needless to say consequent macro substitutions are less
+ # than conducive to the makefile finding the correct directory.
+-[cpp_undefs="`echo $srcdir $configuration $canonical |
++[cpp_undefs="`echo $srcdir $configuration $canonical unix |
+   sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/  *$//' \
+   -e 's/  */ -U/g' -e 's/-U[0-9][^ ]*//g'`"]
index 8864013b4f05740357b7fdf08f8559a61c507e8c..cbf570c9f5137fe5eb357dcf4e1f5d93e87593ba 100644 (file)
@@ -12,3 +12,4 @@ fix-rmail-capitalized-month-names.diff
 fix-dynamic-menus.diff
 fix-gtk-scroll-bar-events.diff
 use-zwj-and-zwnj-for-indic-scripts.diff
+add-unix-to-cpp-undefs.diff